<template>
	<view class="my-container">
		<view class="user-info">
			<image class="avatar" src="https://picsum.photos/100/100" mode="aspectFill"></image>
			<view class="user-details">
				<text class="username">用户名</text>
				<text class="user-level">Lv.1 读者</text>
			</view>
			<view class="edit-profile">
				<text>编辑资料</text>
			</view>
		</view>
		
		<view class="stats-bar">
			<view class="stat-item">
				<text class="stat-num">0</text>
				<text class="stat-label">阅读天数</text>
			</view>
			<view class="stat-item">
				<text class="stat-num">0</text>
				<text class="stat-label">阅读时长</text>
			</view>
			<view class="stat-item">
				<text class="stat-num">0</text>
				<text class="stat-label">书籍收藏</text>
			</view>
		</view>
		
		<view class="menu-list">
			<view class="menu-group">
				<view class="menu-item" @click="navigateTo('readHistory')">
					<text class="menu-icon">📚</text>
					<text class="menu-title">阅读历史</text>
					<text class="menu-arrow">›</text>
				</view>
				<view class="menu-item" @click="navigateTo('notes')">
					<text class="menu-icon">📝</text>
					<text class="menu-title">我的笔记</text>
					<text class="menu-arrow">›</text>
				</view>
				<view class="menu-item" @click="navigateTo('favorites')">
					<text class="menu-icon">⭐</text>
					<text class="menu-title">我的收藏</text>
					<text class="menu-arrow">›</text>
				</view>
			</view>
			
			<view class="menu-group">
				<view class="menu-item" @click="navigateTo('settings')">
					<text class="menu-icon">⚙️</text>
					<text class="menu-title">设置</text>
					<text class="menu-arrow">›</text>
				</view>
				<view class="menu-item" @click="navigateTo('feedback')">
					<text class="menu-icon">📮</text>
					<text class="menu-title">意见反馈</text>
					<text class="menu-arrow">›</text>
				</view>
				<view class="menu-item" @click="navigateTo('about')">
					<text class="menu-icon">ℹ️</text>
					<text class="menu-title">关于我们</text>
					<text class="menu-arrow">›</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			navigateTo(page) {
				uni.showToast({
					title: `跳转到${page}页面`,
					icon: 'none'
				});
				// 实际项目中这里应该跳转到对应页面
			}
		}
	}
</script>

<style>
	.my-container {
		padding: 30rpx;
		background-color: #f8f8f8;
		min-height: 100vh;
	}
	
	.user-info {
		display: flex;
		align-items: center;
		padding: 30rpx;
		background-color: #fff;
		border-radius: 15rpx;
		margin-bottom: 30rpx;
	}
	
	.avatar {
		width: 120rpx;
		height: 120rpx;
		border-radius: 60rpx;
		margin-right: 20rpx;
	}
	
	.user-details {
		flex: 1;
	}
	
	.username {
		font-size: 32rpx;
		font-weight: bold;
		color: #333;
		margin-bottom: 10rpx;
		display: block;
	}
	
	.user-level {
		font-size: 24rpx;
		color: #999;
		display: block;
	}
	
	.edit-profile {
		padding: 10rpx 20rpx;
		border: 1px solid #d81e06;
		border-radius: 30rpx;
		font-size: 24rpx;
		color: #d81e06;
	}
	
	.stats-bar {
		display: flex;
		justify-content: space-around;
		background-color: #fff;
		border-radius: 15rpx;
		padding: 20rpx 0;
		margin-bottom: 30rpx;
	}
	
	.stat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.stat-num {
		font-size: 36rpx;
		font-weight: bold;
		color: #333;
		margin-bottom: 10rpx;
	}
	
	.stat-label {
		font-size: 24rpx;
		color: #999;
	}
	
	.menu-list {
		background-color: #fff;
		border-radius: 15rpx;
	}
	
	.menu-group {
		margin-bottom: 20rpx;
	}
	
	.menu-item {
		display: flex;
		align-items: center;
		padding: 30rpx;
		border-bottom: 1px solid #f0f0f0;
	}
	
	.menu-item:last-child {
		border-bottom: none;
	}
	
	.menu-icon {
		margin-right: 20rpx;
		font-size: 36rpx;
	}
	
	.menu-title {
		flex: 1;
		font-size: 28rpx;
		color: #333;
	}
	
	.menu-arrow {
		font-size: 36rpx;
		color: #ccc;
	}
</style>